# -*- coding: utf-8 -*-
# @Author: lidongdong
# @time  : 19-6-4 下午2:29
# @file  : matplotlib_test.py

"""
usage:
"""

import matplotlib.pyplot as plt
import numpy as np

left, top, right, down = "← ↑ → ↓".split()
for director in [left, top, right, down]:
    print(director)

plt.figure(figsize=(5, 4))
plt.xticks([])
plt.yticks([])
plt.axis("off")

for i in range(5):
    x1 = np.linspace(0., 5.)
    y1 = np.asarray([float(i)] * 50)
    plt.plot(x1, y1, "k-")

for i in range(6):
    x1 = np.asarray([float(i)] * 50)
    y1 = np.linspace(0., 4.)
    plt.plot(x1, y1, "k-")

plt.text(0.35, 0.35, "→", fontsize=20)
plt.text(1.35, 0.35, "↑", fontsize=20)
plt.show()
